package JCT_Chapter_03;

public class getVariableType {
    //int b = 4;
    //可执行语句必须放在方法块中
    //System.out.println(b);
    public static String getVariableDataType(Object object) {
        return object.getClass().toString();
    }
    public static void main(String[] args) {
        int i = 1;
        boolean b = true;
        System.out.println(getVariableDataType(i));
        System.out.println(getVariableDataType(b));
        }
}
